import { BrowserWindow, IgnoreMouseEventsOptions, ipcMain, IpcMainEvent } from "electron";

ipcMain.on('setIgnoreMouseEvents',(event:IpcMainEvent,ignore: boolean, options?: IgnoreMouseEventsOptions) => {
  
  console.log(ignore,options,4);
  const win = BrowserWindow.fromWebContents(event.sender)
  win?.setIgnoreMouseEvents(ignore,options)
})